package com.swipemaster.achievements;

import java.io.Serializable;

/**
 * Information about single level. How many stars we have on this level, our best time and whether is it locked.
 */
public class SingleLevelInfo implements Serializable
{
	private static final long serialVersionUID = 1L;
	/** By default user has 0 stars. */
	private int mStars = 0;
	/**
	 * Zero corresponding to time has special meaning. It means that somebody hasn't finished that level yet. If
	 * somebody finishes level, time will be for sure greater then zero.
	 */
	private float mBestTime = 0.0f;
	/** Level at the beginning is locked, user must finish previous one to unblock it. */
	private boolean mLocked = true;

	public int getStars()
	{
		return mStars;
	}

	public void setStars(int stars)
	{
		mStars = stars;
	}

	public float getBestTime()
	{
		return mBestTime;
	}

	public void setBestTime(float bestTime)
	{
		mBestTime = bestTime;
	}

	public boolean isLocked()
	{
		return mLocked;
	}

	public void setLocked(boolean locked)
	{
		mLocked = locked;
	}
}
